#OUTDIR = ~/share/tftpdir/watchdog
APP = watchdog
OBJS = watchdog.o

ARCH = arm-linux-
CC = $(ARCH)g++

all: $(APP)
ifneq ($(DESTDIR),)
	@cp -raf $^ $(DESTDIR)
endif

$(APP): $(OBJS)
	$(CC) -Wall -o $@ $^

%.o: %.c
	$(CC) -Wall -c -o $@ $<
	
clean:
	rm -rf *.o $(APP)
